package com.qpf.mycms.api.exception.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.qpf.mycms.api.exception.constant.ClientExceptionConstants;
import com.qpf.mycms.api.exception.constant.ExceptionConstants;
import lombok.Getter;

@Getter
public enum RemoteExceptionEnum implements IEnum<Integer>  {
    CLIENT_OPERATION_ERROR(ExceptionConstants.REMOTE_EXCEPTION + ExceptionConstants.LEVEL_1_MACRO_ERROR_CODES, "远程调用异常, 请检查"),
    ;
    private final Integer code;
    private final String desc;

    RemoteExceptionEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}
